<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>login</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<script type="text/javascript">
	function checkLogin() {
		var loginName = document.getElementById("loginName");
		var loginPwd = document.getElementById("loginPwd");
		if (loginName.value == "") {
			alert("用户名不能为空");
			return false;
		} else if (loginPwd.value == "") {
			alert("密码不能为空");
			return false;
		}  else {
			return true;
		} 
	}
</script>
<style type="text/css">
#userlogininfo {
	position:absolute;
	background: url('images/loginB.jpg');
	width: 700px;
	height: 360px;
	border: 2px #ccc solid;
	background-repeat: no-repeat;
	margin-left: 300px;;
	margin-top: 200px;
	
}
.img-header{
	background: url('img/header.jpg');
	width: 500px;
	height: 300px;
	border: 2px #ccc solid;
	background-repeat: no-repeat;
	margin-left: auto;
	margin-right: auto;
}
.Subject {
	color: #a7c4d7;
	font-family: "";
	font-size: 11pt;
	padding-left: 15px;
	padding-right: 9px;
	text-align: justify;
}
#firstDiv{
 border:1px solid #577AB2;
 background: url('img/header.jpg');
 position:absolute;
 width: 700px;
 height: 250px;
 margin-left: 300px;
}
.p1{
margin-left: 100px;
text-align: center;
font-family: "宋体";
font-size: 25px;
color: #577AB2;
}
</style>
</head>
<body>
<div id="firstDiv">
	<p class="p1">陕西省人才发展网</p>
</div>
	<div id="userlogininfo" >
	<a href="<%=basePath%>index.html" style="margin-left:20px; text-decoration: none;">先看看再说</a>
		<center>
			<form action="${r"${pageContext.request.contextPath }"}/servlet/InitServlet?method=userLogin"
				method="post" onsubmit="return checkLogin()">
				<table style="margin-top: 100px;">
					<tr>
						<td>用户名:</td>
						<td><input SIZE="20" TYPE="text"  NAME="userName"
							id="loginName" placeholder="请输入您的电子邮箱"/></td>
							<td><p style="color: red;">*</p></td>
					</tr>
					<tr>
						<td>密&nbsp;码:</td>
						<td><input SIZE="20" TYPE="password" NAME="password"
							id="loginPwd" placeholder="请输入您的密码"/></td>
							<td><p style="color: red;">*</p></td>
					</tr>
				</table>
				<input type="submit" value="提交" style="margin-top: 20px;"/>&nbsp;&nbsp;&nbsp;&nbsp;
						<input type="reset" value="重置" />
			</form>
			<a style="text-decoration: none; " href="register.html">还没有账号，点击注册</a>
		</center>
	</div>

</body>
</html>
